<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>信息操作页面</title>
<link type="text/css" media="screen" charset="utf-8" rel="stylesheet" href="template/default/content/css/style.account-1.1.css" />
<link charset="utf-8" rel="stylesheet" href="template/default/content/css/personal.record-1.0.css" media="all" />
<style type="text/css"> 
.tip-faq{
	clear:both;
	margin-top:0px;
}
#J-table-consume{
	margin-bottom:40px;
}
.ui-form-tips .m-cue{
	 background-position: -27px -506px;
	 *background-position: -27px -505px;
}
#J-set-date a{
	font-family:宋体;
}
</style>
<script type="text/javascript" charset="utf-8" src="template/default/content/js/arale.js"></script>
<script charset="utf-8" src="template/default/content/js/recordIndex.js?t=20110523"></script>
<script language="javascript" type="text/javascript" src="template/default/js/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="template/default/content/js/common.js"></script>
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<script type="text/javascript"> 
E.onDOMReady(function() {

	record = new AP.widget.Record({
		dom: {
			queryForm : "queryForm",
			searchForm : "topSearchForm",
			keyword : "J-keyword",
			keywordType : "J-keyword-type"
		}
	});

	//切换高级筛选状态
	E.on('J-filter-link', 'click', record.switchFilter);
});
function show_help()
{
   mytop=(screen.availHeight-430)/2;
   myleft=(screen.availWidth-800)/2;
   window.open("admin.php?ac=view&fileurl=help&helpid=<?=$fileurl?>","","height=470,width=800,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}
</script>
</head>
<!--[if lt IE 7]><body class="ie6"><![endif]--><!--[if IE 7]><body class="ie7"><![endif]--><!--[if IE 8]><body class="ie8"><![endif]--><!--[if !IE]><!--><body><!--<![endif]-->
<div id="container" class="ui-container">
 
<div id="content" class="ui-content fn-clear" coor="default" coor-rate="0.02">
	<div class="ui-grid-21" coor="content">
		<div class="ui-grid-21 ui-grid-right record-tit" coor="title">
			<h2 class="ui-tit-page">工作流模板信息列表</h2>
			<div class="record-tit-link">
				<a href="#" onClick="show_help()">使用帮助文档？</a>
				<span class="ui-separator-pd">|</span>
			<a href="http://bbs.515158.com/" target="_blank">使用遇到问题？</a>			</div>
			<div class="record-tit-amount">
				
			</div>
		</div>
		
 

		<div class="ui-grid-21 ui-grid-right fn-clear" coor="total">
		                                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                          <tr>
                                            <td width="91%">
											<?=showpage($num,$pagesize,$page,$url)?></td>
                                            <td width="9%" align="right" style="padding-right:10px;"><input type="button" value="新增模板" class="BigButtonBHover" onClick="javascript:window.location='admin.php?ac=template&do=add&fileurl=work'"></td>
                                          </tr>
                                        </table>
		  
										

	  </div>
	</div>
	<form name="excel" method="post" action="admin.php?ac=<?=$ac?>&fileurl=<?=$fileurl?>">
		<input type="hidden" name="do" value="excel" />
		</form>
	<form name="update" method="post" action="admin.php?ac=<?=$ac?>&fileurl=<?=$fileurl?>">
		<input type="hidden" name="do" value="update" />
		<div class="ui-grid-21 ui-grid-right fn-clear" id="J-table-consume" coor="consumelist">
			<div class="ui-tab">
												<div class="ui-tab-trigger"> 
					<ul class="fn-clear"> 
<li class="ui-tab-trigger-item ui-tab-trigger-item-current">
<a href="admin.php?ac=<?=$ac?>&fileurl=<?=$fileurl?>" class="ui-tab-trigger-text">所有模板信息</a></li>					
</ul>
				</div>
 
				<div class="ui-tab-container" id="myScene">
					<div class="ui-tab-container-item ui-tab-container-item-current">
						<table id="tradeRecordsIndex" class="ui-table">
							<thead>
								<tr>
									<th class="checkbox">
									<input type="checkbox" class="checkbox" value="1" name="chkall" onClick="check_all(this)" /></th>
									<th class="info">工作流类别</th>
									<th class="title">模板名称</th>
									<th class="info">状态</th>
									<th class="info">类型</th>
									<th class="info">流程类型</th>
									<th class="info">发布人</th>
									<th class="info">发布时间</th>
									<th width='160'>操作</th>
								</tr>
							</thead>
							<tbody>
<?foreach ($result as $row) {?>
																																								
<tr <?php if($result%2==0){?>class="split" <?php }?>>
<td class="checkbox" style="text-align:center;">
<?php
if($row['temptype']!='1'){
get_checkbox_list_key("id[]",$row['id'],$row['uid'],$_USER->id);
}else{
echo '<input type="checkbox" name="id[]" value="'.$row['id'].'" disabled="disabled" />';
}
?></td>
<td class="info"><?=get_work_type_name($row['workclasstype'])?></td>
<td class="title">
<?=$row['title']?>
</td>
<td class="info">
<?php
if($row["tempkey"]=='1'){
echo '<font color=red>正常</font>';
}elseif($row["tempkey"]=='2'){
echo '<font color=#006600>停用</font>';
}elseif($row["tempkey"]=='3'){
echo '<font color=#006600>模板集成</font>';
}
?>
</td>
<td class="info"><?php
if($row["temptype"]=='1'){
echo '<font color=red>系统</font>';
}elseif($row["temptype"]=='2'){
echo '<font color=#006600>用户</font>';
}
?></td>
<td class="info"><?php
if($row["tmpytpe"]=='1'){
echo '<font color=red>自由流程</font>';
}elseif($row["tmpytpe"]=='2'){
echo '<font color=#006600>固定流程</font>';
}
?></td>
<td class="info"><?=GET_INC_USER_NAME($row['uid'])?></td>
<td class="info"><?=str_replace(" ","<br>",$row['date'])?></td>
<td width='160'>

<?php get_url_list_key("编辑","admin.php?ac=template&do=edit&fileurl=work&id=".$row['id']."","".$row['uid']!=$_USER->id)?> | 
<a href="admin.php?ac=work_form&fileurl=work&template_id=<?=$row['id']?>&type_id=<?=$row['workclasstype']?>">表单管理</a> | 
<a href="admin.php?ac=work_flow&fileurl=work&template_id=<?=$row['id']?>&type_id=<?=$row['workclasstype']?>">流程设置</a>
</td>
									
</tr>
<?}?>			
																									
</tbody>
		</table>
 
											</div>
					
					<div class="fn-clear">
						<!-- 图释 -->
					  <div class="iconTip fn-left" style="padding-left:15px;">
					<input type="checkbox" class="checkbox" value="1" name="chkall" onClick="check_all(this)" /> 全选 &nbsp;
						  
						  <a class="js-add-contact"><span></span></a>
						  <a href="javascript:document:update.submit();">删除数据</a>
</div>
						
												<div class="page page-nobg fn-right">
							<span class="page-link"><?=showpage($num,$pagesize,$page,$url)?></span>
						</div>
						<!-- /分页 -->
											</div>
				</div>
			</div>
 
		
		</div>
		
 </form>		
	</div>
 
 
	
</div>


</div>

                            

</body>
</html>
 

